package notebook.shared;

import net.sf.json.JSONString;

public class BasicDTO implements JSONString {  
	public String userKeyword;
	public String[] fixedKeyword;
	public String content;
	public String title;
	public String url;
	
	public String[] getFixedKeyword() {
		return fixedKeyword;
	}

	public String getUserKeyword() {
		return userKeyword;
	}

	public void setFixedKeyword(String[] fixedKeyword) {
		this.fixedKeyword = fixedKeyword;
	}

	public void setUserKeyword(String userKeyword) {
		this.userKeyword = userKeyword;
	}
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	public String getTitle() {
		return title;
	}
	public String getUrl() {
		return url;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String toJSONString() {
		StringBuffer sb = new StringBuffer("userKeyword:"+userKeyword+",");
		sb.append("fixedKeyword:[");
		for(String fixKW:fixedKeyword){
			sb.append(fixKW+",");
		}
		sb.replace(sb.length()-1, sb.length()-1, "],");
		sb.append("content:"+content+",");
		sb.append("title:"+title+",");
		sb.append("url:"+url+"}");
		return sb.toString();
	}
}
